package com.learn.spring.event;

import com.learn.spring.event.order.PlaceOrderReqVO;
import com.learn.spring.event.service.OrderService;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class SpringLearnEventApplicationTests {

    @Test
    void contextLoads() {
    }
    @Autowired
    private OrderService orderService;


    @Test
    @DisplayName("下单")
    void placeOrder() {
        PlaceOrderReqVO placeOrderReqVO = new PlaceOrderReqVO();
        orderService.placeOrder(placeOrderReqVO);
    }
}
